<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0,user-scalable=no">
    <meta http-equiv="X-UA-Compatible" content="ie=edge" />
    <link rel="stylesheet" href="__STATIC__/mobile/css/common.css" />
    <link rel="stylesheet" href="__STATIC__/mobile/css/detail.css" />
    <title>新闻详情</title>
</head>

<body>
    <div class="detail">
        <div class="title">
            <h4>{$news.title ?: ''}</h4>
            <div class="msg">
                <p>{$news.create_at|format_datetime='Y-m-d'}</p>
                <p>来源:{$news.source ?: ''}</p>
                <p>作者:{$news.author ?: ''}</p>
            </div>
        </div>
        <!--textarea-->
        <div class="detail_textarea">
            {$news.content|raw|default=''}
        </div>
        <!--分页-->
        <div class="page">
            {if empty(newspre($news.id,$news.pid))}
            <a href="javascript:;">上一篇&nbsp;:&nbsp;&nbsp;没有了</a>
            {else}
            {php}$newsid = newspre($news['id'],$news['pid'])['id'];{/php}
            <a href='{:url("/newsdetails/$newsid")}'>上一篇&nbsp;:&nbsp;&nbsp;{:newspre($news.id,$news.pid)['title']}</a>
            {/if}
            {if empty(newsnext($news.id,$news.pid))}
            <a href="javascript:;">下一篇&nbsp;:&nbsp;&nbsp;没有了</a>
            {else}
            {php}$newsid = newsnext($news['id'],$news['pid'])['id'];{/php}
            <a href='{:url("/newsdetails/$newsid")}'>下一篇&nbsp;:&nbsp;&nbsp;{:newsnext($news.id,$news.pid)['title']}</a>
            {/if}
        </div>
    </div>

    <script src="__STATIC__/mobile/js/rem.js"></script>
</body>

</html>